package com.he.architecture.service;

import com.he.architecture.common.service.LogicService;
import com.he.architecture.dao.CustomerDao;
import com.he.architecture.dao.UserDao;
import com.he.architecture.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService extends LogicService<UserDao, User,Long> {
    /**
     * 默认构造器
     */
    public UserService(@Autowired UserDao ud) {
        super(ud);
    }

    public User login(String username,String password){
        return getDAO().findByUsernameAndPassword(username,password);
    }
}
